package com.jkgh.remedium.rsgen.vo;

import java.util.ArrayList;
import java.util.List;

public class MethodInfo {

	private final String name;
	private final String description;
	private final List<Argument> arguments;
	private Return returnType;

	public MethodInfo(String name, String description) {

		this.name = name;
		this.description = description;
		this.arguments = new ArrayList<Argument>();
	}

	public void addArgument(Argument arg) {

		arguments.add(arg);
	}

	public void setReturnType(Return returnType) {

		this.returnType = returnType;
	}

	public Return getReturnType() {

		return returnType;
	}

	public String getDescription() {

		return description;
	}

	public String getName() {

		return name;
	}

	public List<Argument> getArguments() {

		return arguments;
	}
}
